Ext.ns('AIR2.Project');
/***************
 * Project Inquiries Panel
 */
AIR2.Project.Inquiries = function() {
    return new AIR2.UI.Panel({
        showAllLink: AIR2.Project.INQSRCH,
        storeData: AIR2.Project.INQDATA,
        colspan: 2,
        title: 'Queries',
        cls: 'air2-project-inquiry',
        showTotal: true,
        iconCls: 'air2-project-inquiry-icon',
        itemSelector: '.air2-project-inquiry-row',
        tpl: new Ext.XTemplate(
            '<table><tpl for="."><tr class="air2-project-inquiry-row">' +
              '<td>{[AIR2.Format.inquiryTitle(values.Inquiry, true)]}</td>' +
              '<td>{[AIR2.Format.userOrgShort(values.Inquiry.CreUser.UserOrg[0], true)]}</td>' +
              '<td class="info">{sent_count} contacted<br/>' +
                '{resp_count} responded</td>' +
              '<td class="date">{[AIR2.Format.date(values.Inquiry.inq_upd_dtim)]}</td>' +
            '</tr></tpl></table>',
            {compiled: true, disableFormats: true}
        )
    });
}
